import {Texture} from './Texture';
import { Engine } from '../Engine';
class TextureGPU extends Texture{
    constructor(opts){
        super(opts)
    }
    get dimension() {
        return this._dimension;
    }
    set dimension(v) {
        this._dimension = '2d';
    }
    get viewDimension() {
        return this._viewDimension;
    }
    set viewDimension(v) {
        this._viewDimension = 'cube';
    }
    toGPU() {
        if(!this.image) {
            return
        }
        let { image, dimension, viewDimension, format, usage, sampler, uvIndex, uvTransform,multisampled,sampleType } = this;
        return {
            image,
            dimension,
            viewDimension,
            format,
            usage,
            sampler,
            multisampled,
            sampleType,
            uvIndex,
            uvTransform,
            texture: image
        }
    }
}
export {TextureGPU}